-- GENERATED SPELL FOR [Bonechewer Scavenger] --


function spell0_18952(pUnit, Event) --@Bonechewer Bite,n/a--
pUnit:FullCastSpellOnTarget(34113,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18952', 660, 1)
end

function spell1_18952(pUnit, Event) --@Throw Wrench,n/a--
pUnit:FullCastSpellOnTarget(13398,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18952', 506, 1)
end

function Sorts_18952(pUnit, Event)
local choix_sorts_18952 = math.random(0, 1)
if choix_sorts_18952 == 0 then
pUnit:RegisterEvent('spell0_18952', 1, 1)
end
if choix_sorts_18952 == 1 then
pUnit:RegisterEvent('spell1_18952', 1, 1)
end
end

function mob18952_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18952', math.random(1500, 3000), 1)
end

function mob18952_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18952_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18952_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18952, 1, 'mob18952_Action')
RegisterUnitEvent(18952, 2, 'mob18952_Leave')
RegisterUnitEvent(18952, 3, 'mob18952_Kill')
RegisterUnitEvent(18952, 4, 'mob18952_Die')
